/**
 * @author hp by 2018-06-01
 * @type {api}
 * @echarts3Map 对外引用js
 */
var path = getRootPath();
var JQueryUrl = "/mapData/js/jquery.min.js";
var EchartsUrl = "/mapData/js/echarts/echarts.js";
var MainCityUrl = "/mapData/echarts3Map/json/geometryCouties/china-main-city-map.js";
var TMap = "/TGIS_API/TMap_Api.js";

function getRootPath()
{
    var curWwwPath = window.document.location.href;
    var pathName = window.document.location.pathname;
    var pos = curWwwPath.indexOf(pathName);
    var localhostPaht = curWwwPath.substring(0, pos);
    var projectName = pathName.substring(0, pathName.substr(1).indexOf('/') + 1);
    return (localhostPaht + projectName);
}

document.write("<script type='text/javascript' src=" + getRootPath() + JQueryUrl + "></script>");
document.write("<script type='text/javascript' src=" + getRootPath() + EchartsUrl + "></script>");
document.write("<script type='text/javascript' src=" + getRootPath() + MainCityUrl + "></script>");
document.write("<script type='text/javascript' src=" + getRootPath() + TMap + "></script>");